package com.wanmait.baohan.service.Impl;

import com.wanmait.baohan.mapper.DepartmentMapper;
import com.wanmait.baohan.pojo.Department;
import com.wanmait.baohan.service.DepartmentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class DepartmentServiceImpl implements DepartmentService {

    @Resource
    private DepartmentMapper departmentMapper;


    @Override
    public List<Department> selectAll() {
        List<Department> departments = departmentMapper.selectAll();
        return departments;
    }
    @Override
    public List<Department> selectFindAll() {
        List<Department> departments = departmentMapper.selectFindAll();
        return departments;
    }
}
